home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / include / build next >
Text File  |  1992-11-02  |  6KB  |  186 lines

  1. . ../config/system
  2. . ../config/site
  3.  
  4. def_vfork=undef
  5. def_vprintf=undef
  6. def_dirent=undef
  7. def_atexit=undef
  8. def_syms_underl=undef
  9. def_random=undef
  10. def_include_unistd_h=undef
  11. def_sysconf=undef
  12. def_getdtablesize=undef
  13. def_bsd_signals=undef
  14. def_posix_signals=undef
  15. def_align_8byte=undef
  16. def_can_dump=undef
  17. def_fchmod_broken=undef
  18. def_termio=undef
  19. def_use_alloca=undef
  20. def_include_alloca_h=undef
  21. def_pragma_alloca=undef
  22. def_coff=undef
  23. def_ecoff=undef
  24. def_xcoff=undef
  25. def_elf=undef
  26. def_macho=undef
  27. def_use_ld=undef
  28. def_use_rld=undef
  29. def_use_shl=undef
  30. def_pchb=undef
  31. def_max_stack_size=undef
  32. def_init_objects=undef
  33. def_want_proto=undef
  34. def_no_proto=undef
  35. def_generational_gc=undef
  36. def_use_ld_xflag=undef
  37. def_cachectl_h=undef
  38. def_syms_begin_with=undef
  39. def_ansi_cpp=undef
  40. def_can_load_obj=undef
  41.  
  42. if [ _$vfork = _yes ];            then def_vfork=define;            fi
  43. if [ _$vprintf = _yes ];          then def_vprintf=define;          fi
  44. if [ _$dirent = _yes ];           then def_dirent=define;           fi
  45. if [ _$atexit = _yes ];           then def_atexit=define;           fi
  46. if [ _$syms_with_underline = _yes ];
  47.                   then def_syms_underl=define;      fi
  48. if [ _$random = _yes ];           then def_random=define;           fi
  49. if [ _$include_unistd_h = _yes ]; then def_include_unistd_h=define; fi
  50. if [ _$sysconf = _yes ];          then def_sysconf=define;          fi
  51. if [ _$getdtablesize = _yes ];    then def_getdtablesize=define;    fi
  52. if [ _$align_8byte = _yes ];      then def_align_8byte=define;      fi
  53. if [ _$can_dump = _yes ];         then def_can_dump=define;         fi
  54. if [ _$fchmod_broken = _yes ];    then def_fchmod_broken=define;    fi
  55. if [ _$termio = _yes ];           then def_termio=define;           fi
  56. if [ _$use_alloca = _yes ];       then def_use_alloca=define;       fi
  57. if [ _$include_alloca_h = _yes ]; then def_include_alloca_h=define; fi
  58. if [ _$pragma_alloca = _yes ];    then def_pragma_alloca=define;    fi
  59. if [ "_$pointer_constant_high_bits" != _ ];
  60.                   then def_pchb=define;             fi
  61. if [ "_$max_stack_size" != _ ];   then def_max_stack_size=define;   fi
  62. if [ _$init_objects = _yes ];     then def_init_objects=define;     fi
  63. if [ _$generational_gc = _yes ];  then def_generational_gc=define;  fi
  64. if [ _$use_ld_xflag = _yes ];     then def_use_ld_xflag=define;     fi
  65. if [ _$cachectl_h != _ ];         then def_cachectl_h=define;       fi
  66. if [ _$ansi_cpp =  _yes ];        then def_ansi_cpp=define;         fi
  67. if [ _$syms_begin_with != _ ];    then
  68.     def_syms_begin_with=define
  69.     syms_begin_char=\'$syms_begin_with\'
  70. fi
  71. if [ _$index != _yes ];           then
  72.     def_index="#define index strchr"
  73. fi
  74. if [ _$bstring != _yes ]; then
  75.     def_bcopy="#define bcopy(from,to,len) memcpy(to,from,len)"
  76.     def_bzero="#define bzero(p,len)       memset(p,0,len)"
  77.     def_bcmp="#define bcmp memcmp"
  78. fi
  79.  
  80. case _$reliable_signals in
  81. _bsd)    def_bsd_signals=define;;
  82. _posix)  def_posix_signals=define;;
  83. esac
  84.  
  85. case _$prototypes in
  86. _yes)    def_want_proto=define;;
  87. _no)     def_no_proto=define;;
  88. esac
  89.  
  90. case _$aout_format in
  91. _coff)   def_coff=define;;
  92. _ecoff)  def_ecoff=define;;
  93. _xcoff)  def_xcoff=define;;
  94. _elf)    def_elf=define;;
  95. _macho)  def_macho=define;;
  96. esac
  97.  
  98. case _$load_obj in
  99. _ld)     def_use_ld=define;      def_can_load_obj=define;;
  100. _rld)    def_use_rld=define;     def_can_load_obj=define;;
  101. _shl)    def_use_shl=define;     def_can_load_obj=define;;
  102. _)       ;;
  103. *)       echo Invalid value for symbol load_obj: $load_obj; exit 1;;
  104. esac
  105.  
  106. if [ _$dont_init_if_name = _ ]; then
  107.     def_dont_init="#undef DONT_INIT"
  108. else
  109.     def_dont_init="#define DONT_INIT \"$dont_init_if_name\""
  110. fi
  111.  
  112. if [ _$load_obj = _shl ]; then
  113.     load_libraries="$lib_dir/libutil.sl ${load_libraries}"
  114. else
  115.     load_libraries="$lib_dir/libutil.a ${load_libraries--lc}"
  116. fi
  117.  
  118. echo Building config.h...
  119. cat <<EOT >config.h
  120. /* This file was produced by the Makefile in this directory.
  121.  * If you want to change the value of a constant, edit ../config/system
  122.  * or ../config/site and run make again.
  123.  */
  124.  
  125. #ifndef CONFIG_H
  126. #define CONFIG_H
  127.  
  128. #$def_vfork            VFORK
  129. #$def_vprintf          VPRINTF
  130. #$def_dirent           DIRENT
  131. #$def_random           RANDOM
  132. #$def_include_unistd_h INCLUDE_UNISTD_H
  133. #$def_sysconf          SYSCONF
  134. #$def_getdtablesize    GETDTABLESIZE
  135. #$def_bsd_signals      BSD_SIGNALS
  136. #$def_posix_signals    POSIX_SIGNALS
  137. #$def_align_8byte      ALIGN_8BYTE
  138. #$def_coff             COFF
  139. #$def_ecoff            ECOFF
  140. #$def_xcoff            XCOFF
  141. #$def_elf              ELF
  142. #$def_macho            MACH_O
  143. #$def_use_ld_xflag     USE_XFLAG
  144. #$def_can_load_obj     CAN_LOAD_OBJ
  145. #$def_use_ld           USE_LD
  146. #$def_use_rld          USE_RLD
  147. #$def_use_shl          USE_SHL
  148. #  define              LOAD_LIBRARIES    "${load_libraries}"
  149. #$def_cachectl_h       CACHECTL_H        $cachectl_h
  150. #  $def_atexit         ATEXIT
  151. #$def_syms_begin_with  SYMS_BEGIN_WITH   $syms_begin_char
  152. #$def_can_dump         CAN_DUMP
  153. #  define              SEGMENT_SIZE      ${segment_size-unused}
  154. #  define              FILE_TEXT_START   ${file_text_start-unused}
  155. #  define              MEM_TEXT_START    ${mem_text_start-unused}
  156. #  define              TEXT_LENGTH_ADJ   ${text_length_adj-unused}
  157. #  define              TEXT_START        ${ecoff_text_start-unused}
  158. #  define              DATA_START        ${ecoff_data_start-unused}
  159. #  define              COFF_PAGESIZE     ${coff_pagesize-unused}
  160. #  $def_fchmod_broken  FCHMOD_BROKEN
  161. #$def_termio           TERMIO
  162. #$def_use_alloca       USE_ALLOCA
  163. #$def_include_alloca_h INCLUDE_ALLOCA_H
  164. #$def_pragma_alloca    PRAGMA_ALLOCA
  165. #define                TIME_H            $time_h
  166. #$def_pchb             POINTER_CONSTANT_HIGH_BITS  $pointer_constant_high_bits
  167. #$def_max_stack_size   MAX_STACK_SIZE    $max_stack_size
  168. #$def_generational_gc  GENERATIONAL_GC
  169. $def_index
  170. $def_bcopy
  171. $def_bzero
  172. $def_bcmp
  173.  
  174. #$def_init_objects     INIT_OBJECTS
  175. $def_dont_init
  176. #define                SCM_DIR           "$scheme_dir"
  177. #define                LIB_DIR           "$lib_dir"
  178. #define                HEAP_SIZE         $default_heap_size
  179.  
  180. #$def_want_proto       WANT_PROTOTYPES
  181. #$def_no_proto         NO_PROTOTYPES
  182. #$def_ansi_cpp         ANSI_CPP
  183.  
  184. #endif
  185. EOT
  186.